home *** CD-ROM | disk | FTP | other *** search
- StrHooks.bas - String gadget hook demo
- ======================================
-
- Derived from RKM example (c) Copyright 1992 Commodore-Amiga, Inc.
-
- This is a straightforward translation of the Commodore "Example String Gadget
- Editing Hook" taken from the Libraries RKM p.162.
-
- The example shows simple use of string editing hooks to implement a string
- gadget which will only accept hex digits; locale.library is used to provide
- the character detection and casing functions.
-
- The example will work on versions of Workbench 2.1 or later (V38 and above).
-
- Compiling
- ---------
- Load the StrHooks_inc.bh file and Tokenise it (Program-Tokenise), making
- sure you have no token file selected in the File Options (Settings-Compiler-
- Files). Once you have your token file, set the File Options-Token File setting
- to the StrHooks_inc.t file just created. Load the StrHooks.bas file,
- compile & run it.
-